<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<title>Purchase Requisitions</title>
</h:head>

<h:body>

	<ui:composition template="/WEB-INF/templates/1000_layout.xhtml">
		<ui:param name="menuPurchaseRequisitionClass" value="selected" />

		<ui:define name="content">

			<h:form id="form">
			
				<p:tabView id="tview" activeIndex="#{param.index}">
					<p:tab title="Open" id="prTab">
						<ui:include
							src="/WEB-INF/templates/entity/purchaseRequisition.table.xhtml">
							<ui:param name="lazyModel" value="#{dtPurchaseRequisitionLazyView.openLazyModel}" />
						</ui:include>
						<br />
						<ui:include
							src="/WEB-INF/templates/entity/purchaseRequisition.create.xhtml" />
					</p:tab>
					<p:tab title="For Approval">
						<ui:include
							src="/WEB-INF/templates/entity/purchaseRequisition.table.xhtml">
							<ui:param name="lazyModel" value="#{dtPurchaseRequisitionLazyView.pendingLazyModel}" />
						</ui:include>
					</p:tab>
					<p:tab title="Approved">
						<ui:include
							src="/WEB-INF/templates/entity/purchaseRequisition.table.xhtml">
							<ui:param name="lazyModel" value="#{dtPurchaseRequisitionLazyView.approvedLazyModel}" />
						</ui:include>
					</p:tab>
				</p:tabView>
			</h:form>

			<ui:include
				src="/WEB-INF/templates/entity/purchaseRequisition.table.dialog.xhtml" />
				
		</ui:define>

	</ui:composition>

</h:body>
</html>